package com.emser.unc.client.event;

import com.emser.unc.client.presenter.SellerPresenter;
import com.google.gwt.event.shared.GwtEvent;

public class EditProductListEvent extends GwtEvent<EditProductListEventHandler> {
	public static Type<EditProductListEventHandler> TYPE = new Type<EditProductListEventHandler>();
	private SellerPresenter sp;
	
	public EditProductListEvent(SellerPresenter sp) {
		this.setSp(sp);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<EditProductListEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(EditProductListEventHandler handler) {
		handler.onEdit(this);	
	}

	public void setSp(SellerPresenter sp) {
		this.sp = sp;
	}

	public SellerPresenter getSp() {
		return sp;
	}



}
